package com.itheima.reggie.service.impl;

import com.itheima.reggie.entity.DishFlavor;
import com.itheima.reggie.mapper.DishFlavorMapper;
import com.itheima.reggie.service.DishFlavorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DishFlavorServiceImpl implements DishFlavorService {

    @Autowired(required = false)
    private DishFlavorMapper dishFlavorMapper;
    /**
     * 批量添加口味
     *
     * @param dishFlavorList
     * @return
     */
    @Override
    public Boolean add(List<DishFlavor> dishFlavorList) {
        return dishFlavorMapper.add(dishFlavorList)>0;
    }
}
